package com.itany.corejava.day15;

public class TestThreadA {

    public static void main(String[] args) {

        MyThread t1=new MyThread();

        t1.start();

        MyThread t2=new MyThread();

        t2.start();


        for (int i = 0; i < 100; i++) {
            System.out.println("main"+i);
        }
    }
}


class MyThread extends Thread {

    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            System.out.println("run"+i);
        }
    }
}